<template>
  <div :class="classes">
    <slot></slot>
  </div>
</template>

<script>
import { oneOf } from "../../utils/assist";
const prefixCls = "layui-col-space";
export default {
  name: "Row",
  props: {
    space: {
      type: Number,
      validator(value) {
        return oneOf(value, [1, 3, 5, 8, 10, 12, 15, 18, 20, 22, 28, 30]);
      }
    }
  },
  computed: {
    classes() {
      return [
        "layui-row",
        {
          [`${prefixCls}${this.space}`]: this.space
        }
      ];
    }
  }
};
</script>

<style scoped>

</style>